package com.jprocms.module.cms.enums;

/**
 * Cms 操作日志枚举
 * 目的：统一管理，也减少 Service 里各种“复杂”字符串
 *
 * @author JPROCMS
 */
public interface LogRecordConstants {

    // ======================= CMS_CHANNEL 栏目 =======================
    String CMS_CHANNEL_TYPE = "cms 栏目";
    String CMS_CHANNEL_CREATE_SUB_TYPE = "创建栏目";
    String CMS_CHANNEL_CREATE_SUCCESS = "创建了栏目【{{#channel.name}}】";
    String CMS_CHANNEL_UPDATE_SUB_TYPE = "更新栏目";
    String CMS_CHANNEL_UPDATE_SUCCESS = "更新了栏目【{{#channel.name}}】: {_DIFF{#updateReqVO}}";
    String CMS_CHANNEL_DELETE_SUB_TYPE = "删除栏目";
    String CMS_CHANNEL_DELETE_SUCCESS = "删除了栏目【{{#channel.name}}】";
    String CMS_CHANNEL_TORECYCLE_SUB_TYPE = "删除栏目到回收站";
    String CMS_CHANNEL_TORECYCLE_SUCCESS = "删除栏目到回收站【{{#channel.name}}】";

    String CMS_CHANNEL_RESTORE_SUB_TYPE = "还原栏目";
    String CMS_CHANNEL_RESTORE_SUCCESS = "还原了栏目【{{#channel.name}}】";

    // ======================= CMS_SETTING 系统配置 =======================
    String CMS_GLOBALCONFIG_TYPE = "cms 系统配置";
    String CMS_GLOBALCONFIG_UPDATE_SUB_TYPE = "更新系统配置";
    String CMS_GLOBALCONFIG_UPDATE_SUCCESS = "更新了系统配置  {_DIFF{#updateReqVO}}";

    // ======================= CMS_SITE 站点 =======================
    String CMS_SITE_TYPE = "cms 站点";
    String CMS_SITE_CREATE_SUB_TYPE = "创建站点";
    String CMS_SITE_CREATE_SUCCESS = "创建了站点【{{#site.name}}】";
    String CMS_SITE_UPDATE_SUB_TYPE = "更新站点";
    String CMS_SITE_UPDATE_SUCCESS = "更新了站点【{{#site.name}}】: {_DIFF{#updateReqVO}}";

    String CMS_SITE_CONFIG_UPDATE_SUB_TYPE = "更新站点配置";
    String CMS_SITE_CONFIG_UPDATE_SUCCESS = "更新站点配置【{{#site.name}}】";

    String CMS_SITE_TPL_UPDATE_SUB_TYPE = "更新站点模板配置";
    String CMS_SITE_TPL_UPDATE_SUCCESS = "更新站点模板配置【{{#site.name}}】";

    String CMS_SITE_DELETE_SUB_TYPE = "删除站点";
    String CMS_SITE_DELETE_SUCCESS = "删除了站点【{{#site.name}}】";

    // ======================= CMS_MODEL 模型 =======================
    String CMS_MODEL_TYPE = "cms 模型";
    String CMS_MODEL_CREATE_SUB_TYPE = "创建模型";
    String CMS_MODEL_CREATE_SUCCESS = "创建了模型【{{#model.name}}】";
    String CMS_MODEL_UPDATE_SUB_TYPE = "更新模型";
    String CMS_MODEL_UPDATE_SUCCESS = "更新了模型【{{#model.name}}】: {_DIFF{#updateReqVO}}";
    String CMS_MODEL_CONFIG_UPDATE_SUB_TYPE = "更新模型字段";
    String CMS_MODEL_CONFIG_UPDATE_SUCCESS = "更新模型模型【{{#model.name}}】";
    String CMS_MODEL_DELETE_SUB_TYPE = "删除模型";
    String CMS_MODEL_DELETE_SUCCESS = "删除了模型【{{#model.name}}】";

    // ======================= CMS_TPL 模板 =======================
    String CMS_TPL_TYPE = "cms 模板";
    String CMS_TPL_UPDATE_SUB_TYPE = "更新模板或资源";
    String CMS_TPL_UPDATE_SUCCESS = "更新了模板或资源【{{#filename}}】";

    String CMS_TPL_DELETE_SUB_TYPE = "删除模板或资源";
    String CMS_TPL_DELETE_SUCCESS = "删除了模板或资源【{DIFF_LIST{#names}}】";

    String CMS_TPL_RENAME_SUB_TYPE = "重命名模板或资源";
    String CMS_TPL_RENAME_SUCCESS = "重命名了模板或资源【{{#orig}}】为【{{#dest}}】";

    // ======================= CMS_友情链接 模型 =======================
    String CMS_LINK_TYPE = "cms 友情链接";
    String CMS_LINK_CREATE_SUB_TYPE = "创建友情链接";
    String CMS_LINK_CREATE_SUCCESS = "创建了友情链接【{{#link.name}}】";
    String CMS_LINK_UPDATE_SUB_TYPE = "更新友情链接";
    String CMS_LINK_UPDATE_SUCCESS = "更新了友情链接【{{#link.name}}】: {_DIFF{#updateReqVO}}";
    String CMS_LINK_DELETE_SUB_TYPE = "删除友情链接";
    String CMS_LINK_DELETE_SUCCESS = "删除了友情链接【{{#link.name}}】";
    // ======================= CMS_留言 模型 =======================
    String CMS_GUESTBOOK_TYPE = "cms 留言";
    String CMS_GUESTBOOK_CREATE_SUB_TYPE = "创建留言";
    String CMS_GUESTBOOK_CREATE_SUCCESS = "创建了留言【{{#guestbook.title}}】";
    String CMS_GUESTBOOK_UPDATE_SUB_TYPE = "更新留言";
    String CMS_GUESTBOOK_UPDATE_SUCCESS = "更新了留言【{{#guestbook.title}}】: {_DIFF{#updateReqVO}}";
    String CMS_GUESTBOOK_DELETE_SUB_TYPE = "删除留言";
    String CMS_GUESTBOOK_DELETE_SUCCESS = "删除了留言【{{#guestbook.title}}】";

    // ======================= CMS_投票 模型 =======================
    String CMS_VOTE_TYPE = "cms 投票";
    String CMS_VOTE_CREATE_SUB_TYPE = "创建投票";
    String CMS_VOTE_CREATE_SUCCESS = "创建了投票【{{#vote.title}}】";
    String CMS_VOTE_UPDATE_SUB_TYPE = "更新投票";
    String CMS_VOTE_UPDATE_SUCCESS = "更新了投票【{{#vote.title}}】: {_DIFF{#updateReqVO}}";
    String CMS_VOTE_DELETE_SUB_TYPE = "删除投票";
    String CMS_VOTE_DELETE_SUCCESS = "删除了投票【{{#vote.title}}】";
    // ======================= CMS_调查 模型 =======================
    String CMS_INVESTIGATE_TYPE = "cms 调查";
    String CMS_INVESTIGATE_CREATE_SUB_TYPE = "创建调查";
    String CMS_INVESTIGATE_CREATE_SUCCESS = "创建了调查【{{#investigate.title}}】";
    String CMS_INVESTIGATE_UPDATE_SUB_TYPE = "更新调查";
    String CMS_INVESTIGATE_UPDATE_SUCCESS = "更新了调查【{{#investigate.title}}】: {_DIFF{#updateReqVO}}";
    String CMS_INVESTIGATE_DELETE_SUB_TYPE = "删除调查";
    String CMS_INVESTIGATE_DELETE_SUCCESS = "删除了调查【{{#investigate.title}}】";

    // ======================= CMS_CONTENT 内容 =======================
    String CMS_CONTENT_TYPE = "cms 内容";
    String CMS_CONTENT_CREATE_SUB_TYPE = "创建内容";
    String CMS_CONTENT_CREATE_SUCCESS = "创建了内容【{{#content.title}}】";
    String CMS_CONTENT_UPDATE_SUB_TYPE = "更新内容";
    String CMS_CONTENT_UPDATE_SUCCESS = "更新了内容【{{#content.title}}】: {_DIFF{#updateReqVO}}";
    String CMS_CONTENT_DELETE_SUB_TYPE = "删除内容到回收站状态";
    String CMS_CONTENT_DELETE_SUCCESS = "删除了内容到回收站状态【{{#content.title}}】";
    String CMS_CONTENT_DELETE_BATCH_SUCCESS = "删除了内容到回收站状态【{getContentTitlesById{#ids}}】";
    String CMS_CONTENT_TWO_DELETE_SUB_TYPE = "删除内容";
    String CMS_CONTENT_TWO_DELETE_SUCCESS = "删除了内容【{{#content.title}}】";
    String CMS_CONTENT_TWO_DELETE_BATCH_SUCCESS = "彻底删除了内容【{getContentTitlesById{#ids}}】";
    String CMS_CONTENT_CHANNEL_DELETE_SUB_TYPE = "按栏目批量删除内容";
    String CMS_CONTENT_CHANNEL_DELETE_SUCCESS = "按栏目批量删除了内容【{{#channelId}}】 toRecycle ? '进入回收站' : '直接删除' ";
    String CMS_CONTENT_CHANNEL_STATUS_SUB_TYPE = "按栏目批量更改内容状态";
    String CMS_CONTENT_CHANNEL_STATUS_SUCCESS = "按栏目批量更改内容状态【{{#channelId}}】 【{{#status}}】  ";

    String CMS_CONTENT_SUBMIT_SUB_TYPE = "提交内容审核";
    String CMS_CONTENT_SUBMIT_SUCCESS = "提交内容审核【{{#content.title}}】";
    String CMS_CONTENT_APPROVE_SUB_TYPE = "内容审核通过";
    String CMS_CONTENT_APPROVE_SUCCESS = "内容审核通过【{{#content.title}}】";
    String CMS_CONTENT_REJECT_SUB_TYPE = "内容审核拒绝";
    String CMS_CONTENT_REJECT_SUCCESS = "内容审核拒绝【{{#content.title}}】";
    String CMS_CONTENT_AUDIT_SUB_TYPE = "内容审核结果处理";
    String CMS_CONTENT_AUDIT_SUCCESS = "内容审核结果处理【{{#content.title}}】 结果【{{#content.status==4? '通过' : (content.status==3? '驳回' : '草稿')}}】";
    String CMS_CONTENT_ARCHIVE_SUB_TYPE = "归档内容";
    String CMS_CONTENT_ARCHIVE_SUCCESS = "归档了内容【{{#content.title}}】";
    String CMS_CONTENT_ARCHIVE_BATCH_SUCCESS = "归档了内容【{getContentTitlesById{#ids}}】";
    String CMS_CONTENT_PUBLISH_SUB_TYPE = "发布内容";
    String CMS_CONTENT_PUBLISH_SUCCESS = "发布了内容【{{#content.title}}】";
    String CMS_CONTENT_PUBLISH_BATCH_SUCCESS = "发布了内容【{getContentTitlesById{#ids}}】";
    String CMS_CONTENT_OFFLINE_SUB_TYPE = "下线内容";
    String CMS_CONTENT_OFFLINE_SUCCESS = "下线了内容【{{#content.title}}】";

    String CMS_CONTENT_OFFLINE_BATCH_SUCCESS = "下线了内容【{getContentTitlesById{#ids}}】";
    String CMS_CONTENT_TOP_SUB_TYPE = "置顶内容";
    String CMS_CONTENT_TOP_BATCH_SUCCESS = "置顶了内容【{getContentTitlesById{#topVo.ids}}】";
    String CMS_CONTENT_MOVE_SUB_TYPE = "移动内容";
    String CMS_CONTENT_MOVE_BATCH_SUCCESS = "移动了内容【{getContentTitlesById{#moveVo.ids}}】,目标栏目是:【{getChannelNameById{#moveVo.targetChannelId}}】";
    String CMS_CONTENT_MARK_SUB_TYPE = "标记内容";
    String CMS_CONTENT_MARK_BATCH_SUCCESS = "标记了内容【{getContentTitlesById{#markVo.ids}}】,标记是:【{getContentMark{#markVo.dictMark}}】";

    String CMS_CONTENT_BLOCK_SUB_TYPE = "内容设置区块";
    String CMS_CONTENT_BLOCK_BATCH_SUCCESS = "内容设置区块【{getContentTitlesById{#blockVo.ids}}】,区块是:【{getContentBlock{#blockVo.dictBlock}}】";
}
